import { defineStore } from "pinia";
import { getItem, setItem } from "@/utils/localStorage";

const useSettingStore = defineStore("settingStore", {
  state: () => {
    return {
      // 导航选项列表（配置）
      navOptionList: [
        {
          id: 1,
          title: "服务协议",
          icon: "icon-saoma",
          page: "/pagesC/serviceAgreement/index",
        },
        {
          id: 2,
          title: "关于我们",
          icon: "icon-shujutongji",
          page: "/pagesC/aboutUs/index",
        },
        {
          id: 3,
          title: "检测更新",
          icon: "icon-jiankang",
          page: "",
        },
        {
          id: 4,
          title: "隐私保护",
          icon: "icon-kefu",
          page: "/pagesC/secretProtection/index",
        },
      ],
    };
  },
  actions: {},
  getters: {},
});

export default useSettingStore;
